import request from '@/utils/request'

// 查询生成表数据
export function listTable(query) {
  return request({
    url: '/order/meal/page',
    method: 'get',
    params: query
  })
}

// 获取套餐细项列表
export function getMealLineList(query) {
  return request({
    url: '/order/meal/line/list',
    method: 'get',
    params: query
  })
}

// 套餐新增
export function addMeal(data) {
  return request({
    url: '/order/meal/add',
    method: 'post',
    data
  })
}

// 套餐详情
export function detailMeal(query) {
  return request({
    url: '/order/meal/detail',
    method: 'get',
    params: query
  })
}

// 套餐修改
export function updateMeal(data) {
  return request({
    url: '/order/meal/update',
    method: 'post',
    data
  })
}

// 套餐状态更新
export function statusUpdate(data) {
  return request({
    url: '/order/meal/status/update',
    method: 'post',
    data
  })
}
